package com.dzsw.order;

import com.dzsw.order.rule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient
@EnableHystrix
@EnableFeignClients(basePackages ="com.dzsw.order.feign")
@ComponentScan(basePackages = {"com.dzsw.order.controller", "com.dzsw.order.service", "com.dzsw.config", "com.dzsw.order.fallback"})
//@RibbonClients(value = {
//        @RibbonClient(name = "app-item", configuration = MyRule.class)
//})
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

}
